using RockHopper.Common.Model;
using RockHopper.TrainingCalculator.WinRT.Utils;

namespace RockHopper.TrainingCalculator.WinRT.ViewModel
{
    public class ThresholdTileViewModel : TileViewModel
    {
        public override string Label
        {
            get { return "Threshold"; }
        }

        public override void UpdateLiveTile(CalculationContext context, PaceUnitType units)
        {
            LiveTileInfo = context.Threshold.FormatPace(units).AppendPaceUnits(units);
        }
    }
}